package cf.luobo.covid_19.service.imp;

import cf.luobo.covid_19.dao.UsersDao;
import cf.luobo.covid_19.javaBean.pojo.ErrMsg;
import cf.luobo.covid_19.javaBean.pojo.Users;
import cf.luobo.covid_19.service.UsersService;

public class UsersServiceImp implements UsersService {
    private UsersDao dao = new UsersDao();

    @Override
    public Users getUsers(int id) {
        return dao.getUsers(id);
    }

    @Override
    public ErrMsg updateUser(Users users) {
        return dao.updateUser(users);
    }

    @Override
    public ErrMsg saveUsers(Users users) {
        return dao.saveUsers(users);
    }

}
